import { IsString, IsJSON, IsEnum, IsPhoneNumber, Min, Length, IsOptional, IsBoolean, IsNumber, IsEmail, IsNumberString, IsArray } from 'class-validator';
export enum ProjectStatusEnum {
    notStarted = '0',
    design = '1',
    make = '2',
    build = '3',
    end = '4'
}
export class CreateProjectDto {

    @IsString()
    @Length(0, 30)
    projectName: string;

    @IsOptional()
    @IsString()
    @Length(0, 300)
    remark?: string;

    @IsOptional()
    @IsString()
    @IsEnum(ProjectStatusEnum)
    status?: string;

    @IsArray()
    leader: number[];

    @IsArray()
    @IsOptional()
    member?: number[];
}
